using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace KgUtils
{
    public static class AssemblyHelper
    {
        public static string AssemblyName
        {
            get
            {
                return Assembly.GetEntryAssembly().GetName().Name;
            }
        }

        public static Version AssemblyVersion
        {
            get
            {
                return Assembly.GetEntryAssembly().GetName().Version;
            }
        }

        public static string AssemblyShortVersion
        {
            get
            {
                return Assembly.GetEntryAssembly().GetName().Version.ToString(2);
            }
        }

        public static int AssemblyRevision        
        {
            get
            {
                return AssemblyVersion.Revision;
            }
        }
    }
}
